package com.a.module_storage;

import com.hjq.http.config.IRequestApi;
import com.a.lib_bean.bean.Event;
import com.a.lib_network.bean.HttpData;

import java.util.List;
import java.util.Map;

/**
 * CREATE BY 黄炜强
 * 2022/7/21 15:10
 * Desc:
 */
public class StorageEvent extends Event<Map<String, String>, HttpData<StorageEvent.Result>> {
    public final static int GET_TYPE_LIST = 7;

    public StorageEvent(int eventId) {
        this.eventId = eventId;
        this.result = new HttpData<>(new StorageEvent.Result());
    }

    public IRequestApi api;

    public StorageEvent setApi(IRequestApi api) {
        this.api = api;
        return this;
    }

    public static class Result {
        List<ProductType> productTypeList;
        List<ProductItem> productItemList;
    }
}
